@echo off
echo Setting path first
set path=%path%;C:\Program Files\Java\jdk1.6.0_24\bin
pause
echo Your Java Path succesfully set.
set /p Name=Enter your Class Name?:
javac %Name%.java
pause
java %Name%
pause